#ifndef __FishingJoy__RollNumGroup__
#define __FishingJoy__RollNumGroup__

#include <iostream>
#include "cocos2d.h"
#include <vector>
#include "RollNum.h"

class GameLayer;

class RollNumGroup : public cocos2d::Object
{
public:
	RollNumGroup();
	virtual ~RollNumGroup();
	static RollNumGroup *createWithGameLayer(GameLayer *pGameLayer, int nDigit);
	CC_SYNTHESIZE(cocos2d::SpriteBatchNode *, m_pBatchNode, BatchNode);
	CC_SYNTHESIZE(GameLayer *, m_pGameLayer, GameLayer);
	//CC_SYNTHESIZE_RETAIN(cocos2d::Array *, m_pRollNumArray, RollNumArray);
	std::vector<RollNum*>m_pRollNumArray;
	void setValue(int nValue);
	void setPosition(cocos2d::Point pt);
	void setRollNumArray();
private:
	cocos2d::Point m_ptPosition;
	int m_nDigit;
	int m_nValue;
	bool initWithGameLayer(GameLayer *pGameLayer, int nDigit);
};

#endif 
